package com.codingapi.demo.serverorder.feign;

import com.codingapi.demo.serverorder.hystrix.UserClientHystrix;
import com.codingapi.netflix.framework.exception.ServerFeignException;
import com.codingapi.swagger.response.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author modificial
 * @date 2018/7/27
 * @company codingApi
 * @description
 */
@FeignClient(value = "server-user",fallback = UserClientHystrix.class)
public interface UserClient {
    @RequestMapping(
            value = {"/user/listUser"},
            method = {RequestMethod.GET}
    )
    JsonResult listUser() throws ServerFeignException;
}
